package sv.gob.mh.dgii.model;

// Generated 07-08-2013 11:08:04 AM by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RcRepresentanteTmp generated by hbm2java
 */
@Entity
@Table(name = "RC_REPRESENTANTE_TMP", schema = "RUC")
public class RcRepresentanteTmp implements java.io.Serializable {

	private RcRepresentanteTmpId id;
	private RcRucTmp rcRucTmp;
	private String nitRepresentante;
	private String CUsuario;
	private Date fiRepresentante;
	private Date ffRepresentante;
	private Date fhIngreso;
	private String NFolio;
	private String CDocAcredita;
	private String NDocAcredita;
	private String CDocIdentidad;
	private String NDocIdentidad;
	private Long IRcRepresentante;
	private String CEstado;
	private Long CParentesco;
	private Date FCaducidad;

	public RcRepresentanteTmp() {
	}

	public RcRepresentanteTmp(RcRepresentanteTmpId id, RcRucTmp rcRucTmp) {
		this.id = id;
		this.rcRucTmp = rcRucTmp;
	}

	public RcRepresentanteTmp(RcRepresentanteTmpId id, RcRucTmp rcRucTmp,
			String nitRepresentante, String CUsuario, Date fiRepresentante,
			Date ffRepresentante, Date fhIngreso, String NFolio,
			String CDocAcredita, String NDocAcredita, String CDocIdentidad,
			String NDocIdentidad, Long IRcRepresentante, String CEstado,
			Long CParentesco, Date FCaducidad) {
		this.id = id;
		this.rcRucTmp = rcRucTmp;
		this.nitRepresentante = nitRepresentante;
		this.CUsuario = CUsuario;
		this.fiRepresentante = fiRepresentante;
		this.ffRepresentante = ffRepresentante;
		this.fhIngreso = fhIngreso;
		this.NFolio = NFolio;
		this.CDocAcredita = CDocAcredita;
		this.NDocAcredita = NDocAcredita;
		this.CDocIdentidad = CDocIdentidad;
		this.NDocIdentidad = NDocIdentidad;
		this.IRcRepresentante = IRcRepresentante;
		this.CEstado = CEstado;
		this.CParentesco = CParentesco;
		this.FCaducidad = FCaducidad;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "ICorrelativo", column = @Column(name = "I_CORRELATIVO", nullable = false, precision = 18, scale = 0)),
			@AttributeOverride(name = "nit", column = @Column(name = "NIT", nullable = false, length = 14)),
			@AttributeOverride(name = "CRepresentante", column = @Column(name = "C_REPRESENTANTE", nullable = false, length = 2)) })
	public RcRepresentanteTmpId getId() {
		return this.id;
	}

	public void setId(RcRepresentanteTmpId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({
			@JoinColumn(name = "I_CORRELATIVO", referencedColumnName = "I_CORRELATIVO", nullable = false, insertable = false, updatable = false),
			@JoinColumn(name = "NIT", referencedColumnName = "NIT", nullable = false, insertable = false, updatable = false) })
	public RcRucTmp getRcRucTmp() {
		return this.rcRucTmp;
	}

	public void setRcRucTmp(RcRucTmp rcRucTmp) {
		this.rcRucTmp = rcRucTmp;
	}

	@Column(name = "NIT_REPRESENTANTE", length = 14)
	public String getNitRepresentante() {
		return this.nitRepresentante;
	}

	public void setNitRepresentante(String nitRepresentante) {
		this.nitRepresentante = nitRepresentante;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCUsuario() {
		return this.CUsuario;
	}

	public void setCUsuario(String CUsuario) {
		this.CUsuario = CUsuario;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FI_REPRESENTANTE", length = 7)
	public Date getFiRepresentante() {
		return this.fiRepresentante;
	}

	public void setFiRepresentante(Date fiRepresentante) {
		this.fiRepresentante = fiRepresentante;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FF_REPRESENTANTE", length = 7)
	public Date getFfRepresentante() {
		return this.ffRepresentante;
	}

	public void setFfRepresentante(Date ffRepresentante) {
		this.ffRepresentante = ffRepresentante;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_INGRESO", length = 7)
	public Date getFhIngreso() {
		return this.fhIngreso;
	}

	public void setFhIngreso(Date fhIngreso) {
		this.fhIngreso = fhIngreso;
	}

	@Column(name = "N_FOLIO", length = 12)
	public String getNFolio() {
		return this.NFolio;
	}

	public void setNFolio(String NFolio) {
		this.NFolio = NFolio;
	}

	@Column(name = "C_DOC_ACREDITA", length = 2)
	public String getCDocAcredita() {
		return this.CDocAcredita;
	}

	public void setCDocAcredita(String CDocAcredita) {
		this.CDocAcredita = CDocAcredita;
	}

	@Column(name = "N_DOC_ACREDITA", length = 20)
	public String getNDocAcredita() {
		return this.NDocAcredita;
	}

	public void setNDocAcredita(String NDocAcredita) {
		this.NDocAcredita = NDocAcredita;
	}

	@Column(name = "C_DOC_IDENTIDAD", length = 2)
	public String getCDocIdentidad() {
		return this.CDocIdentidad;
	}

	public void setCDocIdentidad(String CDocIdentidad) {
		this.CDocIdentidad = CDocIdentidad;
	}

	@Column(name = "N_DOC_IDENTIDAD", length = 15)
	public String getNDocIdentidad() {
		return this.NDocIdentidad;
	}

	public void setNDocIdentidad(String NDocIdentidad) {
		this.NDocIdentidad = NDocIdentidad;
	}

	@Column(name = "I_RC_REPRESENTANTE", precision = 18, scale = 0)
	public Long getIRcRepresentante() {
		return this.IRcRepresentante;
	}

	public void setIRcRepresentante(Long IRcRepresentante) {
		this.IRcRepresentante = IRcRepresentante;
	}

	@Column(name = "C_ESTADO", length = 1)
	public String getCEstado() {
		return this.CEstado;
	}

	public void setCEstado(String CEstado) {
		this.CEstado = CEstado;
	}

	@Column(name = "C_PARENTESCO", precision = 18, scale = 0)
	public Long getCParentesco() {
		return this.CParentesco;
	}

	public void setCParentesco(Long CParentesco) {
		this.CParentesco = CParentesco;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "F_CADUCIDAD", length = 7)
	public Date getFCaducidad() {
		return this.FCaducidad;
	}

	public void setFCaducidad(Date FCaducidad) {
		this.FCaducidad = FCaducidad;
	}

}
